package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 标的状态枚举
 * @Author:LiJian
 * @Date:2017/11/10
 */
@Getter
@AllArgsConstructor
public enum InvestorReceiveRecordEnum {

    HAS_BEEN_SENT((byte) 0, "已发送"),

    NOT_SEND_OUT((byte) 1, "未发送");

    private Byte status;
    private String desc;
    
    public static InvestorReceiveRecordEnum enumOf(int status) {
        for (InvestorReceiveRecordEnum retEnum : values()) {
            if (retEnum.status == status) {
                return retEnum;
            }
        }
        return null;
    }

}
